package me.zhengjie.modules.enrstu.service;

import me.zhengjie.modules.enrstu.service.dto.*;
import me.zhengjie.modules.system.domain.User;
import me.zhengjie.utils.PageResult;
import org.springframework.data.domain.Pageable;

import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
 * @website https://eladmin.vip
 * @description 报名管理：审核 - 服务接口
 * @author yyx
 * @date 2024-11-6
 **/
public interface AuditService {
    /**
     * 获取待审核列表
     * @param resources /
     * @return /
     */
    PageResult<ReviewWaitInfoListDto> findReviewWaitInfoList(ReviewWaitInfoQueryCriteria resources, Pageable pageable);
    /**
     * 获取已审核列表
     * @param resources /
     * @return /
     */
    PageResult<ReviewAlreadyOrAcceptedInfoListDto> findReviewAlreadyInfoList(ReviewAlreadyOrAcceptedInfoQueryCriteria resources, Pageable pageable);

    /**
     * 获取录取列表
     * @param resources/
     * @return /
     */
    PageResult<ReviewAlreadyOrAcceptedInfoListDto> findReviewAcceptedInfoList(ReviewAlreadyOrAcceptedInfoQueryCriteria resources, Pageable pageable);

    /**
     * 获取列表详情
     * @param id /
     * @return /
     */
    List<Map<String,Object>> getListDetails(String id);

    /**
     * 下载附件信息
     * @param linkIds /
     * @return /
     */
    byte[] fileDownload(List<String> linkIds);


    /**
     * 审核处理
     * @param reviewHandler /
     */
    void review(ReviewOrAcceptedHandler reviewHandler) ;
    /**
     * 审核处理
     * @param acceptedHandler /
     */
    void accepted(List<ReviewOrAcceptedHandler> acceptedHandler);

    /**
     * 录取列表导出
     * @param response /
     */
    void download(HttpServletResponse response) throws IOException;

//    /**
//     * 动态获取列表详情
//     * @return
//     */
//    List<Map<String,Object>> getDynamicsListDetails();

    /**
     * 获取当前用户信息
     * @return /
     */
    User getUserInfo();
}
